package com.znsd.exam.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znsd.entitys.ExamHistoryInfo;
import com.znsd.entitys.ExamHistoryPaper;
import com.znsd.exam.dao.ExamHistoryPaperDao;
import com.znsd.exam.service.ExamHistoryPaperService;

@Service
public class ExamHistoryPaperServiceImpl implements ExamHistoryPaperService{
	
	@Autowired
	private ExamHistoryPaperDao examHistoryDao;
	@Override
	public List<ExamHistoryInfo> getExamHistoryToTeacher() {
		return examHistoryDao.getExamHistoryToTeacher();
	}
	@Override
	public List<ExamHistoryPaper> getExamHistoryToStudent(Integer studentId) {
		return examHistoryDao.getExamHistoryToStudent(studentId);
	}
	@Override
	public int getHistoryInfoWithIds(Map<String, Object> map) {
		return examHistoryDao.getHistoryInfoWithIds(map);
	}
	@Override
	public int addExamHistory(Map<String, Object> map) {
		return examHistoryDao.isAddExamHistory(map);
	}
	@Override
	public int deleteExamHistroy(int examPaperId) {
		return examHistoryDao.isDeleteExamHistroy(examPaperId);
	}
	@Override
	public Integer save(ExamHistoryInfo examHistoryInfo) {
		return examHistoryDao.save(examHistoryInfo);
	}
	@Override
	public ExamHistoryInfo getUserCheck(Map<String, Integer> map) {
		return examHistoryDao.getUserCheck(map);
	}
}
